package com.xqboss.apps.mapper.consumer;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.domain.consumer.ConsumerWarnPunchRecord;
import com.xqboss.apps.vo.consumer.ConsumerTeamMsgRecordUserVo;

import java.util.List;

/**
 * 提醒打卡记录Mapper接口
 *
 * @author xqboss
 * @date 2023-08-19
 */
public interface ConsumerWarnPunchRecordMapper extends BaseMapper<ConsumerWarnPunchRecord> {
    /**
     * 查询提醒打卡记录
     *
     * @param id 提醒打卡记录主键
     * @return 提醒打卡记录
     */
    public ConsumerWarnPunchRecord selectConsumerWarnPunchRecordById(Long id);

    /**
     * 查询提醒打卡记录列表
     *
     * @param consumerWarnPunchRecord 提醒打卡记录
     * @return 提醒打卡记录集合
     */
    public List<ConsumerWarnPunchRecord> selectConsumerWarnPunchRecordList(ConsumerWarnPunchRecord consumerWarnPunchRecord);

    /**
     * 新增提醒打卡记录
     *
     * @param consumerWarnPunchRecord 提醒打卡记录
     * @return 结果
     */
    public int insertConsumerWarnPunchRecord(ConsumerWarnPunchRecord consumerWarnPunchRecord);

    /**
     * 修改提醒打卡记录
     *
     * @param consumerWarnPunchRecord 提醒打卡记录
     * @return 结果
     */
    public int updateConsumerWarnPunchRecord(ConsumerWarnPunchRecord consumerWarnPunchRecord);

    /**
     * 删除提醒打卡记录
     *
     * @param id 提醒打卡记录主键
     * @return 结果
     */
    public int deleteConsumerWarnPunchRecordById(Long id);

    /**
     * 批量删除提醒打卡记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteConsumerWarnPunchRecordByIds(Long[] ids);

    ConsumerTeamMsgRecordUserVo getRecordById(Long sourceId);
}

